package net.csdn.business.common.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import java.io.Serializable;
import java.util.Date;

@Data
public class OrgAdvertisementQueryDto implements Serializable {

    private String orgName;

    private String orgUrl;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date beginDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date endDate;

    @Range(min = 1, max = 100, message = "pageNum 不合法")
    private int pageNum = 1;

    @Range(min = 1, max = 100, message = "pageSize 不合法")
    private int pageSize = 10;
}
